package Homework05;

public class ExtendsTest {
    public static void main(String[] args) {
        Student student=new Student("zhou",12,"xiaoming",20,"hn");
        Teacher teacher=new Teacher("hu",34,"lk",9000);
        Doctor doctor=new Doctor("waike","bai",34,"bj");
        System.out.println(student.className);
        student.className="xm";
        System.out.println(student.className);
        student.sayHi();
        student.sleep();
        teacher.sayHi();
        teacher.sleep();
        doctor.sayHi();
        doctor.sleep();
    }
}
